package cn.pinming.entity.system;

import cn.pinming.entity.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;
import java.io.Serializable;

/**
 * 系统资源表(SysResource)实体类
 *
 * @author makejava
 * @since 2020-02-02 22:24:58
 */
@Data
@Entity
@Table(name = "`sys_resource`")
public class SysResource extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -87233802621949138L;
    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 父资源ID
     */
    private Integer pid;
    /**
     * 资源名称
     */
    private String name;
    /**
     * 资源权限
     */
    private String perms;
    /**
     * 资源地址
     */
    private String url;
    /**
     * 资源图标
     */
    private String icon;

}